// 登录
$('.j-HomePage').click(function () {
  $.ajax({
    url: '/api/login/getuser',
    data: {
      username: $('.j-usename').val(),
      password: $('.j-passname').val(),
      type: $('.type:checked').val()
    },
    type: 'get',
    success: function (res) {
      var User = localStorage.setItem('user', JSON.stringify(res.data[0]))
      console
      if (res.data.length) {
        if (res.data[0].type) {
          window.location.href = '/wb258-2/page/AnnouncementHomePage.html'
        }else{
          window.location.href='/wb258-2/page/AnnouncementHomePage2.html'
        }
      } else {
        $('.denglukuang .panduanzhanghao').css('display', 'block')
      }
    }
  })
})